package com.example.provider2.controller;


import com.example.provider2.pojo.Product;
import com.example.provider2.service.Productservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * description: ProductController <br>
 * date: 2021/5/25 11:27 <br>
 * author: xiehui <br>
 * version: 1.0 <br>
 */
@RestController
@RequestMapping("/product")
public class ProductController {
    @Autowired
    private Productservice productservice;

    @RequestMapping("/list")
    public List<Product> selectProductsList() {
        return productservice.selectProductsList();
    }
}
